Properly go into background mode.