Logout message from clients when they close, server now handles that. + some fixes, cleanups