Bug 1047143 - close aps entering task-manager, exitToApp to open/restore

This is something unpredictable. Please change the start order in bootstrap.js to achieve it.