Handling o scheduled commands with connection problem

Currently it crashes if a command is invoked with no internet connection.

It should delay the command keeping it on queue.