sort out your application to actually close the connection