script to make sure port is not on for longer than given time