Fixed Loggin That closes server