1. Fix crash when program is opened in background before running
	This was introduced by: 7f4f36b Use hare-ev to handle the event loop
