cleanup logging
adding tests around server.stop() usage