set job waiting if with interactive mode, and set it back to running when leaving interactive mode
Merge pull request #31 from nilxam/interactive_waiting_running

set job waiting if with interactive mode, and set it back to running when leaving interactive mode