bugfix motor shutdown