Using ```rescue Exception => e``` is a bit more conventional than the somewhat magic $!.  Also, catch the specific exception if possible.  Thanks!