Sandbox fixes

I fixed a minor bug with the sandbox (#132) and a bug triggered when the sandbox is called with timeout set to 0, ie. disabled, which caused the wallclock timeout to be set to 1.