Fix crash on exit via Application singleton
Fix remote_address synchronizaton bug