Check for motion when deleting

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>