What does close(sPort)?
Can you post the code for that?