Implement configurable timeouts

Can now configure startup timeout and shutdown delay