Sometime DB doesn't login for random reasons. So when you X out of DB it shows that the process is closed but sometimes it will still be running. If it tells you max sessions try going to your task manager and look in processes. If you see agent.exe in there go ahead and end that process. Then try logging into DB after that.