Invoke next command from end() method.

Added comments