Base64 encoding works, server shutdown is borked