Load the application before daemonizing. Fixes #285