Move init deinit to application