Improved event-handling and fixed crashes for client with FE-server installed.