Catch init errors

Without the if statement, the pkill might throw an error, which causes
the init script to crash.