Connections are now properly closed when clients disconnect. Added notifications for users logging in/out.