Do not create window on close in background mode
Never open new window with --background

Fixes Bug 720491.