Show error messages and back to main screen after connection lost
close control panel after disconnection