Fixes some issues with app startup/authentication and when events fire