Is there a function to force terminal to disconnect from the server

 
I have problem of disconnection without recconect. It is solved when I disconnect from the server. Is there a function to force terminal to disconnect from the server for few seconds?