Fix error with converting seconds to minutes

@resource[:timeout] is a string, so we need to coerce it to an integer
before dividing it by 60
Close all FDs when forking

Doing this keeps the background process from holding on to the
terminate, and preventing SSH from closing