Fixed chat partner online state, can close window if offline (issue #146)